﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            MessageBox.Show("  你好欢迎来到童话镇！！！");
        }

        private void Form1_MouseClick(object sender, MouseEventArgs e)
        {
            //var Form1 = new Form1();
            //Form1.Show();
            var res = MessageBox.Show("人物主要介绍内容", "消息标题", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
            if (res == DialogResult.Yes)
            {
                MessageBox.Show("欢迎来到七个小矮人的树洞");

            }
            else
            {
                MessageBox.Show(" 白雪皇后来了");
            }
        }

        private void Form1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            this.Close();

        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {

        }
    }
}
